all:consumer_client publish_client
consumer_client : consumer_client.cc ../mq_comm/mq.pb.cc ../mq_comm/mq_msg.pb.cc ../mq_third/include/muduo/proto/codec.cc
	g++ -g -std=c++11 $^ -o $@ -I../mq_third/include -L../mq_third/lib  -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz
publish_client : publish_client.cc ../mq_comm/mq.pb.cc ../mq_comm/mq_msg.pb.cc ../mq_third/include/muduo/proto/codec.cc
	g++ -g -std=c++11 $^ -o $@ -I../mq_third/include -L../mq_third/lib  -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz
.PHONY:clean
clean:
	rm -f publish_client consumer_client